package com.examples.springboot.jpa.pojos;

import com.examples.springboot.jpa.domain.ClimberPhoneNumber;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ClimberPhoneNumberVo {
  private String id;
  private String number;

  public ClimberPhoneNumberVo(ClimberPhoneNumber phoneNumber) {
    this(phoneNumber.getId(),
        phoneNumber.getNumber());
  }

  @Override
  public String toString() {
    return number;
  }
  
}
